package com.gxaedu.shiro.mapper;

import com.gxaedu.shiro.pojo.Auth;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleAuthMapper {

    /**
     * 通过角色Id去查询权限
     * @param roleId
     * @return
     */
    List<Auth> findAuthsByRoleId(@Param("roleId") Long roleId);
}
